package com.anxin.service;

import com.anxin.entity.Appointment;
import com.baomidou.mybatisplus.extension.service.IService;
import java.time.LocalDate;
import java.util.List;

public interface AppointmentService extends IService<Appointment> {
    /**
     * 创建预约
     */
    void createAppointment(Appointment appointment);
    
    /**
     * 取消预约
     */
    void cancelAppointment(String appointmentId, String reason);
    
    /**
     * 获取患者的预约列表
     */
    List<Appointment> getPatientAppointments(String patientId);
    
    /**
     * 获取医生的预约列表
     */
    List<Appointment> getDoctorAppointments(String doctorId, LocalDate date);
    
    /**
     * 更新预约状态
     */
    void updateAppointmentStatus(String appointmentId, Integer status);
} 